//
//  CJNetWork.h
//  TMSDriver
//
//  Created by mac on 2019/3/15.
//  Copyright © 2019年 zhuchongjin. All rights reserved.
//

#import <Foundation/Foundation.h>


/**
 *   请求方式
 */
typedef NS_ENUM(NSUInteger, CJGetSendGoodsType) {
    /**
     *   车长
     */
    CJGetSendGoodVehicleLength = 0,
    /**
     *   货物数量单位
     */
    CJGetSendgoodsTransferFeeUnits,
    
    /**
     *   车型 车长vehicleLength
     */
    CJGetSendgoodsvehicleLengthClass,  //limitWastageType
    /**
     *   合理路耗类型
     */
    CJGetSendgoodslimitWastageType,   //
    /**
     *   保费选择
     */
    CJGetSendgoodsInsureType,   //
    /**
     *  开票方式  迭代去掉 21-08-13
     */
//    CJGetSendgoodsBillingType,   // billingType
    /**
     *  银行
     */
    CJGetSendgoodsBank,
    /**
     *  费用类型
     */
    CJGetPriceItem,
    
    CJExtraFeeType,
    
    CJAbnormalType,
    /**
     *  运输方式
     */
    CJTransportType,
    // 税务开票货物分类
    CJAlctGoodsType,
    // 货物类型
    CJAlctGoodsClass,
//    投保类型
    CJInsureGoods,
//    银行卡类型
    CJCardType

};

typedef void (^ _Nullable Success)(id _Nullable responseObject);     // 成功Block
typedef void (^ _Nullable Failure)(NSError * _Nullable error);        // 失败Blcok
@interface CJNetWork : NSObject


//+ (void)getOrderTotalCount;

/// 获取个人信息
/// @param suceeinfo <#suceeinfo description#>
+ (void)getPartyUserCenterInfoSuccess:(Success )suceeinfo;


/// 货主个人认证-根据登录信息获取货主详情
/// @param suceeinfo <#suceeinfo description#>
+ (void)getShipmentInfoSuccess:(Success )suceeinfo;

/// 获取必填非必填     driver 司机 driverTeam 车队 teamDriver 车队司机 shipment 货主 shipmentCompany 企业货主
/// @param strType <#strType description#>
/// @param suceeinfo <#suceeinfo description#>
+ (void)getFieldRequiredSetting:(NSString *_Nonnull)strType InfoSuccess:(Success )suceeinfo;

+ (void)getSenGoodsDicsTypeinfo:(CJGetSendGoodsType )goodsType Success:(Success )suceeinfo;

+ (void)getCommonRouteDistance:(NSDictionary *_Nonnull)dic Success:(Success )suceeinfo;
/// 通过经纬度获取距离
/// @param dic <#dic description#>
/// @param suceeinfo <#suceeinfo description#>
+ (void)getCommonRouteDistanceByLatLong:(NSDictionary *_Nonnull)dic Success:(Success )suceeinfo;
/// 删除
/// @param strCode <#strCode description#>
/// @param suceeinfo <#suceeinfo description#>
+ (void)deleteOrderListWithCodes:(NSString *_Nonnull)strCode Success:(Success )suceeinfo;

/// 暂停
/// @param strCode <#strCode description#>
/// @param suceeinfo <#suceeinfo description#>
+ (void)stopOrderListWithCodes:(NSString *_Nonnull)strCode Success:(Success )suceeinfo;


/// 刷新运单 
/// @param strCode <#strCode description#>
/// @param suceeinfo <#suceeinfo description#>
+ (void)refreshOrderListWithCodes:(NSString *_Nonnull)strCode Success:(Success )suceeinfo;

/// 获取运单列表的详情数据
/// @param strCode <#strCode description#>
/// @param suceeinfo <#suceeinfo description#>
+ (void)getSourcesOrderListDetailDataWithCode:(NSString *_Nonnull)strCode Success:(Success )suceeinfo;
/// 货源单详情
/// @param strCode <#strCode description#>
/// @param suceeinfo <#suceeinfo description#>
+ (void)getSourcesListDetailDataWithCode:(NSString *)strCode Success:(Success )suceeinfo;


/// 上传照片
/// @param img <#img description#>
/// @param imageData <#imageData description#>
/// @param suceeinfo <#suceeinfo description#>
+ (void)upLoadImageUImage:(UIImage *_Nullable)img withNSData:(NSData *_Nullable)imageData Success:(Success )suceeinfo;


/// <#Description#>
/// @param suceeinfo <#suceeinfo description#>
+ (void)getBrachcCodeSuccess:(Success )suceeinfo;

/// 获取机构列表list
/// @param suceeinfo <#suceeinfo description#>
+ (void)getBrachcCodeListSuccess:(Success )suceeinfo;

/// 获取首页消息数量
/// @param suceeinfo <#suceeinfo description#>
+ (void)getHomeVCMessageNoReadSumSuccess:(Success )suceeinfo;
@end
